﻿
find_package(VTKm REQUIRED QUIET)
find_package(Kokkos REQUIRED QUIET)

set(header
	Common.h 
	FiniteElement.h
	Quadrature.h
	Mesh.h
	PSArray.h
	KokkosArray.h
	VTKmArray.h
)

set(host_src
  Mesh.cpp

)

set(device_src
  ComputeArea.cpp
  EbESystem.cpp
  #ex5.cpp
  VTKmArray.cpp
  main.cpp
)

add_executable(ComputeArea ${header} ${host_src} ${device_src} )

target_link_libraries(ComputeArea  PUBLIC mesh)
target_link_libraries(ComputeArea PUBLIC vtkm::filter vtkm::cont vtkm::worklet vtkm::io)
target_link_libraries(ComputeArea PUBLIC Kokkos::kokkos)
vtkm_add_target_information(ComputeArea DROP_UNUSED_SYMBOLS MODIFY_CUDA_FLAGS DEVICE_SOURCES ${device_src})
